﻿using System;
using CQRS.Events;

namespace CQRS.Sample.Domain.Commands
{
    public class RegisterPlaneEmergencyCommand : Command
    {
        public RegisterPlaneEmergencyCommand(Guid planeId, string flightNumber, string airportName,
                                             string crewCommander, DateTime date, string weatherConditions)
        {
            PlaneId = planeId;
            FlightNumber = flightNumber;
            AirportName = airportName;
            CrewCommander = crewCommander;
            EmergencyDate = date;
            WeatherConditions = weatherConditions;
        }

        public Guid PlaneId { get; set; }
        public string FlightNumber { get; set; }
        public string AirportName { get; set; }
        public string CrewCommander { get; set; }
        public DateTime EmergencyDate { get; set; }
        public string WeatherConditions { get; set; }
    }
}